package com.ruicar.afs.cloud.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruicar.afs.cloud.common.core.util.IResponse;
import com.ruicar.afs.cloud.product.entity.ProductRuleInfo;

import java.util.List;

/**
 * @author yaorui.zhang
 * @date 2020年5月14日11:02:48
 */
public interface ProductRuleInfoService extends IService<ProductRuleInfo> {

    void effectiveRule(long planId, String fitScope,String name);

    void effectiveRule(ProductRuleInfo productRuleInfo);

    IResponse<Boolean> delProductRuleInfoList(long planId, String fitScope);

    IResponse<Boolean> delProductRuleInfo(ProductRuleInfo productRuleInfo);

    void invalid(long planId, String fitScope);

    void invalid(ProductRuleInfo productRuleInfo);

    //方案复制
    void copyRulePlan(Long oldPlanID, String newPlanID, String fitScope);

    //列表复制
    void copyRuleList(List<ProductRuleInfo> ruleInfosOldList, String fitScope, String newPlanID);

    //单个复制
    void copyRuleOne(ProductRuleInfo productRuleInfo, String fitScope);
}
